package com.youpingou.service.impl;

import com.youpingou.client.UserClient;
import com.youpingou.domain.User;
import com.youpingou.service.AuthService;
import com.youpingou.vo.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

/**
 * @auther Created by yuanxinqi
 */
@Service
public class AuthServiceImpl implements AuthService {

    @Autowired
    private UserClient userClient;


    public User findUserByMobile(User user){
        User dbUser = this.userClient.findUserByMobile(user.getMobile(), user.getPassword());
        return dbUser;
    }


}